
 
 D C . n e a r e s t H e a d i n g L e v e l ( c o n t e x t ) 
 
 
 
 S h o r t h a n d :   D C . n e a r e s t H L ( c o n t e x t ) 
 
 
 
 D e s c r i p t i o n :   R e t u r n s   t h e   n u m b e r   o f   t h e   c l o s e s t   h e a d i n g   l e v e l   i n   t h e   r e a d i n g   o r d e r   r e l a t i v e   t o   t h e   D C . w r a p p e r   e l e m e n t . 
 
 
 
 R e t u r n s :   N u m b e r . 
 
 
 
 N o t e :   I f   c o n t e x t   i s   n o t   s p e c i f i e d ,   w i n d o w . d o c u m e n t   w i l l   b e   u s e d   i n s t e a d .   I f   t h e r e   a r e   n o   h e a d i n g s   p r i o r   t o   D C . w r a p p e r   i n   t h e   r e a d i n g   o r d e r ,   0   w i l l   b e   r e t u r n e d .   B o t h   n a t i v e   H 1   t h r o u g h   H 6   h e a d i n g s   a n d   A R I A   h e a d i n g s   a r e   r e c o g n i z e d   e q u a l l y . 
 
 
 
 E x a m p l e : 
 
 
 
 D C . n e a r e s t H e a d i n g L e v e l ( ) ; 
 
 